<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php 
$sort2=isset($_GET['sort'])?$_GET['sort']:'';
$cs=Yii::app()->clientScript;
$cs->registerCssFile(Yii::app()->baseUrl.'/css/main.css');
$cs->registerCssFile(Yii::app()->baseUrl.'/css/form.css');
$cs->registerScript('dataGrid',<<<END
$("table.dataGrid tr").mousemove(function(){\$(this).addClass("odd1");}).mouseout(function(){\$(this).removeClass("odd1");});
$("input[readonly]").keydown(function(e){if(e.keyCode!=9){alert("此项不可输入或修改!");return false;}});
$("input[type=text]").focus(function(){\$(this).select();});
var sort='$sort2';
if(sort!=''){var desc='.desc';var img='desc.gif';if(sort.indexOf(".")!=-1){desc='';sort=sort.substr(0,sort.indexOf("."));img='asc.gif';}
sort="th a[href$=sort="+sort+desc+"],th a[href*=sort="+sort+desc+"&]";$(sort).parent("th").append("<img src='img/"+img+"'/>");}
END
);
?>
<title><?php echo $this->pageTitle; ?></title>
</head>
<body>
<div id="page">
<div id="content">

<?php echo $content; ?>

</div><!-- content -->
<p>&nbsp;</p>
</div><!-- page -->
</body>
</html>